document.addEventListener("DOMContentLoaded", function () {
  //js代码
  var color = document.querySelector("#bgWrap").style.backgroundColor;
  console.log(color);
});
